//
//  MoreRelatedAdviCell.m
//  WE
//
//  Created by iMacOne on 15/11/21.
//  Copyright © 2015年 UNOHACHA. All rights reserved.
//

#import "MoreRelatedAdviCell.h"

#import "Size.h"

@interface MoreRelatedAdviCell ()


@property (nonatomic, strong)UIView * backGView;

@end
@implementation MoreRelatedAdviCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        
//        self.aImgeView = [[UIImageView alloc] initWithFrame:CGRectMake(margin_5 * Width, margin_10 * Height, margin_10* Width , margin_10* Height)];
//        self.aImgeView.layer.masksToBounds = YES;
//        self.aImgeView.layer.cornerRadius = 5;
//        self.aImgeView.backgroundColor = DEBUG_CLOLR;
//        
        self.titleabel = [[UILabel alloc] initWithFrame:CGRectMake( margin_10 * Width, 20 * Height,WindowWidth - 20, 40)];
        _titleabel.font = FONT(14);
        _titleabel.numberOfLines = 2;
        _titleabel.text = @" ""相关咨询相关咨询相关咨询相关咨询相关咨询相关咨询相关咨询相关咨询相关咨询相关咨询相关咨询"" ";
        _titleabel.textColor = CONTENTCOLOR;
        self.TriangleLbl = [[UILabel alloc] initWithFrame:CGRectMake(45, CGRectGetMaxY(_titleabel.frame)+ 3, 30, 10)];
        _TriangleLbl.text = @"▲";
        _TriangleLbl.textColor = [UIColor colorWithRed:239/255.0 green:239/255.0 blue:239/255.0 alpha:1.0];
        
        self.backGView = [[UIView alloc] initWithFrame:CGRectMake(10, CGRectGetMaxY(_TriangleLbl.frame), _titleabel.frame.size.width, 100)];
        _backGView.backgroundColor = [UIColor colorWithRed:239/255.0 green:239/255.0 blue:239/255.0 alpha:1.0];
        
        self.iconImageV = [[UIImageView alloc] initWithFrame:CGRectMake(5, 5, 30, 30)];
        _iconImageV.backgroundColor = DEBUG_CLOLR;
        _iconImageV.layer.masksToBounds = YES;
        _iconImageV.layer.cornerRadius = 15;
        
        self.nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(_iconImageV.frame) + 5, 10, 50, 20)];
        _nameLabel.font = FONT(14);
        _nameLabel.text = @"将琪琪";
        
        self.levelLbl = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(_nameLabel.frame) + 5, 10, 80, 20)];
        _levelLbl.font = FONT(13);
        _levelLbl.text = @"三级甲等医院";
        _levelLbl.textColor = [UIColor grayColor];
        
        _zhiweiLabel = [[UILabel alloc] initWithFrame:CGRectMake(CGRectGetMaxX(_levelLbl.frame)+5, 10, 80, 20)];
        _zhiweiLabel.font = FONT(13);
        _zhiweiLabel.text = @"-  主治医生";
        _zhiweiLabel.textColor = [UIColor grayColor];
        _zhiweiLabel.textAlignment = 0;
        
        
        self.contentLabel = [[UILabel alloc] initWithFrame:CGRectMake(_iconImageV.frame.origin.x, CGRectGetMaxY(_iconImageV.frame) + 5, _titleabel.frame.size.width - 2*_iconImageV.frame.origin.x, 60)];
        _contentLabel.font = FONT(13);
        _contentLabel.numberOfLines = 3;
        _contentLabel.textColor = CONTENTCOLOR;
        _contentLabel.text = @"哼哼哈嘿快使用哼哼哈嘿快使用哼哼哈嘿快使用哼哼哈嘿快使用哼哼哈嘿快使用哼哼哈嘿快使用哼哼哈嘿快使用哼哼哈嘿快使用哼哼哈嘿快使用哼哼哈嘿快使用哼哼哈嘿快使用哼哼哈嘿快使用哼哼哈嘿快使用哼哼哈嘿快使用哼哼哈嘿快使用哼哼哈嘿快使用哼哼哈嘿快使用哼哼哈嘿快使用";
        
        [_backGView addSubview:_iconImageV];
        [_backGView addSubview:_nameLabel];
        [_backGView addSubview:_levelLbl];
        [_backGView addSubview:_contentLabel];
        [_backGView addSubview:_zhiweiLabel];
        [self.contentView addSubview:_TriangleLbl];
        [self.contentView addSubview:_titleabel];
        [self.contentView addSubview:_backGView];

        
        
    }
    return self;
}

@end
